<!DOCTYPE html >
<html lang="zh-cmn-Hans"  style="background:#fff;">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
	<meta name="format-detection" content="telephone=no, date=no, address=no, email=no, url=no">
	<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Expires" content="0">
	<title>退换处理</title>
	<meta name="description" content="">
	<link rel="stylesheet" href="__WECHATCSS__/main.css?1">
    <script type="text/javascript">
        (function (win, doc) {
            if (!win.addEventListener) return;
            var html = document.documentElement;
            function setFont() {
                var cliWidth = html.clientWidth;
                html.style.fontSize = 100 * (cliWidth / 750) + 'px';
            }
            win.addEventListener('resize', setFont, false);
            setFont();
        })(window, document);
    </script>
	<link rel="stylesheet" href="__WECHATCSS__/admin/css/main.css?201812202315">
</head>

<body style="background:#fff;">
	<div class="header">
        <img class="wecharHead" src="{$member_info.headimgurl}" />
        <h2>您好，{$member_info.nickname}</h2>
        <h3>所属门店：{$storeAdminInfo.store_name}</h3>
		<h3>金额：￥{$saAccountInfo.paied_amount}</h3>
        <p>
			<span>库存：</span>
			{volist name='goodsStoreList' id='item'}
				<span>{$item.goods_name}：{$item.store_count}</span>				
			{/volist}
		</p> 
		<p>
			<span>已借出：</span>
			{volist name='goodsStoreList' id='item'}
			{if condition="$item.sale_mode == 1 || $item.sale_mode == 2 "}
				<span>{$item.goods_name}：{$item.hire_sum}</span>	
			{/if}			
			{/volist}
		</p>
		<p>
			<span>已卖出：</span>
			{volist name='goodsStoreList' id='item'}
			{if condition="$item.sale_mode == 0 || $item.sale_mode == 2 "}
				<span>{$item.goods_name}：{$item.sales_sum}</span>		
			{/if}						
			{/volist}
		</p>
    </div>
	<div class="content">
		<form method="POST" onsubmit="return check_submit()">
			<table class="table">
				<tr>
					<th style="width:30%">订单号</th>
					<td style="width:70%;text-align:left;padding:0.2rem 0.5rem;">{$orderInfo.order_sn}</td>
				</tr>
				<tr>
					<th>拒绝原因</th>
					<td style="text-align:left;padding:0.2rem 0.5rem;">
						<select class="Xreject_remark" name="reject_remark" style="-webkit-appearance:menulist;margin-bottom:0.1rem;width: 60%;">
							<option value="">快速选择</option>
							{volist name="reject_remark" id="v"}
							<option value="{$v}">{$v}</option>
							{/volist}
							<option value="其他">其他</option>
						</select><br>
						<input type="text" name="reject_remark" class="s_input">
					</td>
				</tr>
				<tr>
					<td colspan="2" class="center" style="padding:.2rem 0;">
						<input type="hidden" name="order_id" value="{$orderInfo.order_id}">
						<input type="submit" value="提交" class="btn">
					</td>
				</tr>
			</table>			
		</form>
	</div>
	
	<script src="__WECHATASSETS__/jquery.min.js"></script>
	<script>
	function check_submit(){
		if ($('input[name="reject_remark"]').val()==''){
			alert('请输入拒绝原因');
			return false;
		}
		return confirm('请与用户确认订单号以防止误操作');
	}
	$(function(){
		$(".Xreject_remark").change(function(){
			$('input[name="reject_remark"]').val($(this).val());
			$(this).val('');
		});
	});
	</script>
</body>

</html>